<template>
	<view class="classLayout pageBg">
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :record="item"></theme-item>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		apiGetClassify,
	} from "@/api/api.js"


	const classifyList = ref([])
	const getClassify = async () => {
		let res = await apiGetClassify({
			pageSize: 15
		});
		classifyList.value = res.data
	}

	getClassify()
</script>

<style scoped lang="scss">
	.classify {
		padding: 30rpx;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 15rpx;
	}
</style>